<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        //算数运算
        let num1=10,num2=20;
        console.log(num1+num2);
        console.log(num1-num2);
        console.log(num1*num2);
        console.log(num1/num2);
        console.log(num1%4);
        console.log(2**10);
        console.log(num1++);
        let num3 = num2++;
        console.log(num2);
        console.log(num3);
        console.log("10"-num2);
        console.log("10"+num2);
        console.log("10"+undefined);
        console.log("10"+"ab");
        console.log("10"-"a");//NaN not a number
        //关系运算符
        console.log(1 < 2);
        console.log(2 != 2);
        console.log(1 == "1");
        console.log(1 === "1");
        console.log(undefined == null);
        console.log(1 > "a");
        console.log(1 < "a");
        console.log("acd" > "acb");
        //赋值运算符
        console.log(num1+=5);
        //逻辑运算
        let boo1 = true;
        let boo2 = false;
        console.log(boo1&&boo2);
        console.log(boo1||boo2);
        console.log(!boo1);
        //三元运算符
        console.log(10>5?"yes":"no");







    </script>
</head>
<body>
    
</body>
</html>